package com.sziit.se.highconcurrency.tool;

public class PrintThreadInfo {

    public static void printThreadInfo() throws InterruptedException {
        System.out.println("当前线程名称：" + Thread.currentThread().getName());
        System.out.println("当前线程ID：" + Thread.currentThread().getId());
        System.out.println("当前线程状态：" + Thread.currentThread().getState());
        System.out.println("当前线程优先级：" + Thread.currentThread().getPriority());

//        Thread.sleep(10000000);
    }


}
